package apiday02;

/**
 * String replaceAll(String regex,String str)
 * 将当前字符串中满足正则表达式的部分替换为给定的字符串
 */
public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line = "abc132def456ghi789";
        line = line.replaceAll("[0-9]+","#NUMBER#");
        System.out.println(line);
    }
}
